<?php
namespace app\app\controller;
use \app\app\controller\Base;
use \think\Db;
class Diaocha extends Base
{
    public function index()
    {
        // var_dump($news->render());
        return $this->fetch();
    }
        public function index1()
    {
        $diaocha=Db::name("diao_cha")->select();
        $num=Db::name("diao_cha")->count();
        $this->assign("diaocha",$diaocha);
        $this->assign("num",$num);
        // var_dump($news->render());
        return $this->fetch();
    }

        public function index2()
    {
        $fenshu=Request()->param("fenshu");
        if($fenshu<=50){
            $msg="困于枷锁";
        }elseif ($fenshu>50&&$fenshu<70) {
            $msg="相爱相杀";
        }elseif ($fenshu>70&&$fenshu<90) {
            $msg="恩爱夫妻";
        }elseif ($fenshu>=90) {
            $msg="神仙眷侣";
        }
        $this->assign("fenshu",$fenshu);
        $this->assign("msg",$msg);
        // var_dump($news->render());
        return $this->fetch();
    }
        public function index3()
    {
        // var_dump($news->render());
        return $this->fetch();
    }
        public function index4()
    {
        // var_dump($news->render());
        return $this->fetch();
    }


}
